<%@ Page Language="C#" MasterPageFile="~/Admin/Pages/MasterPage.master" AutoEventWireup="true" CodeFile="AdminAdd.aspx.cs" Inherits="Admin_Pages_AdminAdd" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 125px;
        }
        .style2
        {
            width: 154px;
        }
    </style>
    <title>Management System</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="wraptitle">
    <h1>Add New Admin</h1>
</div>
<div class="wrapcontent">
<center>    <table style="width: 600px;">
        <tr>
            <td align="left" class="style1">
                Username:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtUsername" runat="server" Width="145px"></asp:TextBox>
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtUsername" Display="Dynamic" 
                    ErrorMessage="* Username is not empty"></asp:RequiredFieldValidator>
                <asp:Label ID="lblUser" runat="server" Text="* Username already exists" Visible="false" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style1">
                Password:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtPass" runat="server" Width="145px" TextMode="Password"></asp:TextBox>
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtPass" Display="Dynamic" 
                    ErrorMessage="* Password is not empty"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" class="style1">
                Re-Enter Password:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtRePass" runat="server" Width="145px" TextMode="Password"></asp:TextBox>
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtRePass" Display="Dynamic" 
                    ErrorMessage="* Re-Enter password is not empty"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtPass" ControlToValidate="txtRePass" Display="Dynamic" 
                    ErrorMessage="* Re-Enter Password must the same password"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="left" class="style1">
                Full Name:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtFullName" runat="server" Width="145px"></asp:TextBox>
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtFullName" Display="Dynamic" 
                    ErrorMessage="* FullName is not empty"></asp:RequiredFieldValidator>
            </td>
        </tr>
         <tr>
            <td align="left" class="style1">
                Birthday:
            </td>
            <td align="left" class="style2">
                
                <telerik:RadDatePicker ID="txtDate" Runat="server">
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                </telerik:RadDatePicker>
                
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtDate" Display="Dynamic" 
                    ErrorMessage="* Birthday is not empty"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" class="style1">
                Email:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtEmail" runat="server" Width="145px"></asp:TextBox>
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="txtEmail" Display="Dynamic" 
                    ErrorMessage="* Email is not empty"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
                    runat="server" ControlToValidate="txtEmail" Display="Dynamic" 
                    ErrorMessage="* Invalid email format" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    <asp:Label ID="lblEmail" runat="server" Text="* Email already exists" Visible="false" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" class="style1">
                Phone:
            </td>
            <td align="left" class="style2">
                <asp:TextBox ID="txtPhone" runat="server" Width="145px"></asp:TextBox>
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtPhone" Display="Dynamic" 
                    ErrorMessage="* Phone is not empty"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1"  align="left">
                Address:</td>
            <td class="style2" align="left" >
                <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Height="66px" 
                    Width="144px"></asp:TextBox>
            </td>
            <td align="left">
                &nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtAddress" Display="Dynamic" 
                    ErrorMessage="* Address is not empty" ValidationGroup="group"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td class="style2" align="left">
                
                <asp:Button ID="btnSubmit" runat="server" Text="Save" 
                    onclick="btnSubmit_Click" />
                <input type="reset" value="Reset" name="Reset" id="reset"/>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>

    </table>
    </center>

</div>

</asp:Content>

